package com.neusoft.service;

import com.neusoft.entity.SystemMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Component
@FeignClient(value = "provider-banji")
public interface SystemMenuComsumerService {
    @PostMapping("/systemMenu/queryAll")
    public Map<String, Object> queryAll();

    @PostMapping("/systemMenu/queryAllIn")
    public Object queryAllIn(@RequestParam("page") Integer page, @RequestParam("limit") Integer limit, @RequestBody SystemMenu systemMenu);

    @PostMapping("/systemMenu/save")
    public Object save(@RequestBody SystemMenu systemMenu);

    @PostMapping("/systemMenu/delete")
    public boolean delete(@RequestBody Integer[] ids);


}
